Remove pointless inout arguments
authorEmmanuele Bassi <ebassi@gnome.org>
Tue, 17 Nov 2020 14:40:52 +0000 (14:40 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Tue, 17 Nov 2020 16:38:12 +0000 (16:38 +0000)
commit153c6424d3aa983c3679a7ebf640d0b2b21fc26a
tree95ad303259c619d3497b9d1452658472ada66182
parent2b8c3731c1803228b5df1238015c6d971a57fa35
Remove pointless inout arguments

GtkTreeView.get_tooltip_context() takes an inout X and Y coordinates,
but the "out" side is a side effect: the conversion from widget-relative
to bin window-relative coordinates is not documented, and can be done
using public API, if needed.

GtkIconView.get_tooltip_context() follows the same pattern, and takes
two inout arguments for the coordinates, but it does not change them any
more, after GtkIconView's bin window was dropped in commit 8dc5e13e.

There's really no point in having these `inout` arguments, and while
GtkTreeView and GtkIconView are certainly de-emphasised in GTK4, and we
nudge developers to move to the new list views, we should take advantage
of the API break to remove warts.
docs/reference/gtk/migrating-3to4.md
gtk/gtkfilechooserwidget.c
gtk/gtkiconview.c
gtk/gtkiconview.h
gtk/gtktreeview.c
gtk/gtktreeview.h
tests/testtooltips.c